package org.zhenggn.designpattern.strategy;

/**
 * Created by zhengguinan on 2017/9/14.
 */
public class Price {

    private Strategy strategy = null;

    public Price(Strategy strategy) {
        this.strategy = strategy;
    }

    public  double quote(double goodsPrice) {
        return this.strategy.calcPrice(goodsPrice);
    }
}
